//
//  XHF_AFN.h
//  haojia
//
//  Created by 徐宏飞 on 16/4/15.
//  Copyright © 2016年 徐宏飞. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XHF_AFN : NSObject


typedef void(^AppToolBlock)(id result);

typedef void(^AppToolBlock)(id resultX);


// get请求使用
+ (void)geturlStr:(NSString *)urlStr Block:(AppToolBlock)block;

// post请求使用
//+ (void)getPostWithURL:(NSString *)urlStr Body:(NSString *)body Block:(AppToolBlock)block;
+ (void)postHTTPWithURL:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSDictionary *success))success failure:(void (^)(NSError * error))failure;



@end
